/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package ricohlogshandling;

import java.io.File;
import java.util.List;

/**
 *
 * @author Nuno
 */
public class RicohLogsHandling {

   // static File folderMPC2051;
    public static void main(String[] args) {
        File folderMPC2051;
        File folderMPC300;
     
        folderMPC2051 = new File("Z:/INFORMATICA/Ricoh/Ricoh MPC2051/CSV");
        folderMPC300 = new File("Z:/INFORMATICA/Ricoh/Ricoh MPC300/CSV");
        System.out.println("####################\n"+folderMPC2051+"\n####################");
        File[] contentMPC2051=folderMPC2051.listFiles();
        listFilesForFolder(folderMPC2051);
        
        System.out.println("####################\n"+folderMPC300+"\n####################");
        File[] contentMPC300=folderMPC300.listFiles();
        listFilesForFolder(folderMPC300);
        
        

    }

    private static void listFilesForFolder(File folder) {
        for (File fileEntry : folder.listFiles()) {
            if (fileEntry.isDirectory()) {
                listFilesForFolder(fileEntry);
                System.out.println("File error");
            } else {
                System.out.println("File exists:" + fileEntry.getName());
            }
        }
    }

}
